<?php
function getCateName($data,$cid)
{
	$cate_name = "";
	foreach($data as $key)
	{
		if ($key['id'] == $cid)
		{
			$cate_name = $key['cate_name'];
		}
	}
	return $cate_name;
}
?>